package bb.lanxing.model.json;

import android.os.Parcel;
import android.os.Parcelable;
import com.alibaba.fastjson.annotation.JSONField;
import com.garmin.fit.MonitoringReader;
import com.umeng.analytics.pro.d;

public class WorkoutMergeInfo implements Parcelable {
    public static final Parcelable.Creator<WorkoutMergeInfo> CREATOR = new Parcelable.Creator<WorkoutMergeInfo>() {
        @Override
        public WorkoutMergeInfo createFromParcel(Parcel parcel) {
            return new WorkoutMergeInfo(parcel);
        }

        @Override
        public WorkoutMergeInfo[] newArray(int i) {
            return new WorkoutMergeInfo[i];
        }
    };
    @JSONField(name = MonitoringReader.DISTANCE_STRING)
    private double distance;
    @JSONField(name = "duration")
    private long duration;
    @JSONField(name = d.q)
    private long endTime;
    @JSONField(name = "pace_end")
    private int paceEnd;
    @JSONField(name = "pace_start")
    private int paceStart;
    @JSONField(name = "workout_id")
    private long serverId;
    @JSONField(name = d.p)
    private long startTime;
    @JSONField(name = "title")
    private String title;
    @JSONField(name = "track_end")
    private int trackEnd;
    @JSONField(name = "track_start")
    private int trackStart;
    @JSONField(name = "uuid")
    private String uuid;

    @Override
    public int describeContents() {
        return 0;
    }

    public WorkoutMergeInfo() {
    }

    public long getServerId() {
        return this.serverId;
    }

    public void setServerId(long j) {
        this.serverId = j;
    }

    public double getDistance() {
        return this.distance;
    }

    public void setDistance(double d) {
        this.distance = d;
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String str) {
        this.title = str;
    }

    public String getUuid() {
        return this.uuid;
    }

    public void setUuid(String str) {
        this.uuid = str;
    }

    public int getTrackStart() {
        return this.trackStart;
    }

    public void setTrackStart(int i) {
        this.trackStart = i;
    }

    public int getTrackEnd() {
        return this.trackEnd;
    }

    public void setTrackEnd(int i) {
        this.trackEnd = i;
    }

    public int getPaceStart() {
        return this.paceStart;
    }

    public void setPaceStart(int i) {
        this.paceStart = i;
    }

    public int getPaceEnd() {
        return this.paceEnd;
    }

    public void setPaceEnd(int i) {
        this.paceEnd = i;
    }

    public long getDuration() {
        return this.duration;
    }

    public void setDuration(long j) {
        this.duration = j;
    }

    public long getStartTime() {
        return this.startTime;
    }

    public void setStartTime(long j) {
        this.startTime = j;
    }

    public long getEndTime() {
        return this.endTime;
    }

    public void setEndTime(long j) {
        this.endTime = j;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeLong(this.serverId);
        parcel.writeDouble(this.distance);
        parcel.writeString(this.title);
        parcel.writeString(this.uuid);
        parcel.writeInt(this.trackStart);
        parcel.writeInt(this.trackEnd);
        parcel.writeInt(this.paceStart);
        parcel.writeInt(this.paceEnd);
        parcel.writeLong(this.duration);
        parcel.writeLong(this.startTime);
        parcel.writeLong(this.endTime);
    }

    protected WorkoutMergeInfo(Parcel parcel) {
        this.serverId = parcel.readLong();
        this.distance = parcel.readDouble();
        this.title = parcel.readString();
        this.uuid = parcel.readString();
        this.trackStart = parcel.readInt();
        this.trackEnd = parcel.readInt();
        this.paceStart = parcel.readInt();
        this.paceEnd = parcel.readInt();
        this.duration = parcel.readLong();
        this.startTime = parcel.readLong();
        this.endTime = parcel.readLong();
    }
}
